<div class="row-fluid lines" style="padding-top: 20px;padding-bottom: 20px">
<div  style="padding-left: 20px;" >
	<input type="hidden" name="user" value="<?php echo ucfirst($this->common_model->get_username_id($this->session->userdata('user_id')));?>" readonly />
	<span style="font-size: 21px">All Questions</span>
	<br />
	<span style="font-size: 14px" class="muted">	
	<?php echo ucfirst($this->common_model->get_username_id($this->session->userdata('user_id')));?></span>
	<br>	
</div>
</div>
<div class="row-fluid">
<form action="<?php echo site_url('founder/questions/get_question_by_client_id');?>" method="POST">
	<table class="table">		
		<tr>
			<td>
				<select class="chzn-select" name="user">
				<option>Select Client</option>
					<?php foreach($users as $user){
						if($this->ion_auth->is_client($user->id)){						
						?>
					<option value="<?php echo $user->id;?>" <?php if($user_id == $user->id) {echo 'selected';} ?> ><?php echo $user->username?></option>
					<?php } }?>
				</select>				
			</td>
			<td><input type="submit" value="Apply" class="btn"/></td>
			<td></td>
		</tr>
	</table>
	</form>
</div>
<div>
<?php 
/*echo '<pre>';
print_r($my_questions);
echo '</pre>';*/
if(isset($my_questions) OR !empty($my_questions)){
?>
	<table class="table table-condensed">
	<thead>
	<tr>				
		<th>Project Name</th>
		<th>Question title</th>		
		<th>Posted On</th>
	</tr>
	</thead>
	<?php foreach($my_questions as $my_question){ ?>
	<tr>
	<td width="15%">
	<a href="<?php echo site_url('user/tasks/milestones_details/'.$my_question->pId)?>" class="text-info">
	<?php echo $my_question->pName;?>
		</a>		
	</td>	
		<td>
		<a class="tooltips" title="<?php echo $my_question->title;?>" href="<?php echo site_url('user/tasks/task_detail/'.$my_question->task_id)?>">
		<span style="<?php if($my_question->is_answered==1){echo 'text-decoration:line-through;';}?>" >
		<?php echo strip_tags(substr($my_question->note,0,135)).'...'?>
		</span>	</a>		
		</td>
		<td width="15%"><?php echo $my_question->date;?></td>
	</tr>
	<?php }?>
	<tr></tr>		
	</table>	
	<?php }?>
</div>
<script type="text/javascript">
function select_all(){
	if(document.getElementById('all').checked){
		$('.all').attr('checked','checked');
	}else{
		$('.all').prop('checked', false);
		}
	}
</script>